package com.common.Enums;


import lombok.Getter;

/**
 * @Author 无名小卒
 * @Date 2020/5/11 21:43
 * @Version 1.0
 */

@Getter
public enum ResponseEnum implements BaseEnum {
    SUCCESS(0,"成功"),
    ADD_SUCCESS(0,"添加成功"),
    UPD_SUCCESS(0,"更新成功"),
    DEL_SUCCESS(0,"删除成功"),
    ERROR(-1, "服务端出现错误!"),
    PARAM_ERROR(3, "参数错误"),
    ADD_ERROR(4,"添加失败"),
    UPDATE_ERROR(5,"更新失败"),
    DELETE_ERROR(6,"删除失败"),
    SIGIN_ERROR(56,"签名校验失败"),
    VIDEO_SINGIN_EROR(60,"播放授权失败"),
    REQUEST_TIME_OUT(61,"请求超时");
    private final Integer status;
    private final String desc;

    ResponseEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }
}
